package com.qcby.train.mybaitsplusdemo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qcby.train.mybaitsplusdemo.controller.Demo0513Controller;
import com.qcby.train.mybaitsplusdemo.entity.ClassInfo;
import com.qcby.train.mybaitsplusdemo.mapper.ClassInfoMapper;
import com.qcby.train.mybaitsplusdemo.service.IClassInfoService;
import com.qcby.train.mybaitsplusdemo.vo.ClassInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className: ClassInfoImpl
 * @description:
 * @author: lxt
 * @create: 2021-04-26 20:35
 **/
@Service
public class ClassInfoServiceImpl extends ServiceImpl<ClassInfoMapper, ClassInfo> implements IClassInfoService {

    @Autowired
    private Demo0513Controller demo0513Controller;

    @Override
    public IPage<ClassInfoVo> listPage(IPage<ClassInfoVo> page, ClassInfo classInfo) {
        demo0513Controller.demo3();
        return page.setRecords(this.baseMapper.listPage(page,classInfo));
    }
}
